/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-12-28 15:12:45
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-03 10:56:55
 * @FilePath: \cxl-driving-training\src\views\system\protocol\list\config.ts
 */
export const tableConfig = {
    headerOperation: [
        {
            type: 'create',
            visible: true,
            permission: ['POST:/api/system/agreement/manage/add'],
            className: '',
            name: '新增协议',
            button: 'button',
            radioGroup: []
        }
    ],
    search: [
        {
            key: 'protocolType',
            name: '协议名称',
            type: 'select',
            options: []
        }
    ],
    permission: ['GET:/api/system/agreement/manage/getPageList'],
    table: {
        operation: [
            {
                type: 'look',
                visible: true,
                permission: ['GET:/api/system/agreement/manage/getDetailById'],
                className: '',
                name: '查看'
            }
        ],
        propName: {
            name: '协议名称',
            version: '版本号',
            type: '应用渠道',
            status: '状态',
            createBy: '操作人',
            createTime: '创建时间'
        },
        operationWidth: '82px',
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: ['POST:/api/system/agreement/manage/updateDisable'],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
